package com.act.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

import com.act.domain.Sumweek;

//周清
public interface ISumweekDao { 
	
	//查总记录数
	int getCounts() ;

	int getCountsByThree(@Param("jobnum") String jobnum,@Param("startTime") String startTime,@Param("endTime") String endTime);
	
	//增
	void add(Sumweek sumweek);
	
	//改
	void update(Sumweek sumweek);
	
	//删
	void delete(int id);

	//查所有
	List<Map> getAll(@Param("startIndex")int startIndex,@Param("endIndex")int endIndex);

	//根据工号查询某个时间段内的周清记录
	List<Map> getByEidTime(@Param("jobnum")String jobnum,@Param("startTime")String startTime,@Param("endTime")String endTime,@Param("startIndex")int startIndex,@Param("endIndex")int endIndex);
	
	//根据id查询
	Sumweek getById(@Param("id")int id);
}
